import { FC } from "react"

import { SFormItem } from "@/components/common"
import StyleSelect from "@/components/common/styleSelect"
import { useLocale } from "@/locales"

//设备号/虚拟币地址
export const DeviceVCurrecySelector: FC<any> = props => {
	const { rules, disable, labelProps, selectorProps } = props
	const { formatMessage } = useLocale()
	const options = [
		{ label: formatMessage({ id: "label.device1" }), value: 1 },
		{ label: formatMessage({ id: "label.member.virtual_currency_address" }), value: 2 }
	]
	return (
		<SFormItem name="deviceVCurrencySelector" rules={rules} {...labelProps}>
			<StyleSelect
				placeholder={formatMessage({ id: "label.select_all" })}
				allowClear
				options={options}
				disable={disable}
				{...selectorProps}
			/>
		</SFormItem>
	)
}
